@import url("https://fonts.googleapis.com/css2?family=Major+Mono+Display&family=Open+Sans:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-transform: capitalize;
}

/* =========== Root =========== */
:root {
  /* =========== Colors =========== */
  --website-background: #e5dbf6;
  /* #9400ff dark mode */
  --elements-background: #ffffff80;
  --text-color: #000000;
  --button-background: #ffffff00;
  --button-hover: #ffffff;
  --border-radius: 0.3rem;
  --box-shadow: #00000080;
  --box-shadowHover: 0 4px 8px 0 #ffffff00;
  --scrollbar-color: #9500ff41 #ffffff80;

  /* =========== Fonts =========== */
  /*
        font-family: 'Major Mono Display', monospace;
        font-family: 'Open Sans', sans-serif;
    */
  --navbar-font-family: 'Major Mono Display', monospace;
  --logo-font-family: 'Major Mono Display', monospace;
  --h1h2-font-family: "Open Sans", sans-serif;
  --h1h2-font-weight: 700;
  --h3h4-font-family: "Open Sans", sans-serif;
  --h3h4-font-weight: 500;
  --all-font-family: "Open Sans", sans-serif;
  --all-font-weight: 400;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* =========== Colors =========== */
    --website-background: #17191a;
    --elements-background: #181a1a80;
    --text-color: #ffffff;
    --button-background: #181a1a80;
    --button-hover: #ffffff30;
    --box-shadow: #000000;
    --box-shadowHover: 0 4px 8px 0 #0f1011;
    --icon-tone: #9400ff;
    --scrollbar-color: #9400ff #ffffff80;
  }
}

/* =========== Root end =========== */


/* =========== background =========== */
html {
  background: var(--website-background);
  background-size: cover;
  overflow-x: hidden;
scrollbar-color: var(--scrollbar-color);
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/* =========== Fonts =========== */
h1,
h2 {
  font-family: var(--h1h2-font-family);
  font-weight: var(--h1h2-font-weight);
}

h3,
h4 {
  font-family: var(--h3h4-font-family);
  font-weight: var(--h3h4-font-weight);
}

h5,
h6,
small,
p {
  font-family: var(--all-font-family);
  font-weight: var(--all-font-weight);
}

/* =========== Fonts end =========== */

.icon-tone {
  color: var(--icon-tone);
}

main {
  padding: 0% 0%;
}

.topic {
  padding: 3% 10%;
  font-size: 4rem;
}

/* ============= Navbar ============= */
.navbar {
  background: var(--elements-background);
  font-family: var(--navbar-font-family);
  position: fixed;
  color: var(--text-color);
  backdrop-filter: blur(10px);
  width: 100%;
  height: 60px;
  display: inline;
  display: grid;
  grid-template-columns: 1fr 0% 50% 0% 1fr;
  z-index: 100;
}

.nav_logo {
  font-family: var(--logo-font-family);
  font-size: 2rem;
  display: inline;
  float: left;
  padding: 10px 0 10px 10px;
  cursor: pointer;
}

.nav_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.2rem;
  text-align: center;
  padding: 10px 0;
}

.nav_link {
  transition: all 0.3s ease;
  font-size: large;
  display: inline;
  padding: 10px;
}

.nav_link:hover {
  cursor: pointer;
  font-size: larger;
}

.nav_btns {
  float: right;
  padding: 12px 10px 0 0;
  display: inline;
}

.nav_btn,
.mobile_login-btn {
  background-color: var(--button-background);
  border-color: var(--button-background);
  border: solid;
  border-color: var(--icon-tone);
  color: var(--text-color);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  float: right;
  padding: 6px 10PX;
  margin: 2px;
}

.icon-tone:hover,
.mobile_login-btn:hover {
  color: var(--text-color);
  border-color: var(--text-color);
}

.mobile_login-btn {
  padding: calc(2.2px);
}

.darkLight {
  padding: calc(2.5px) 5px;
}

#darkLight {
  width: 20px;
  cursor: pointer;
}

.search_btn {
  padding: calc(5.8px) 9px;
}

.nav_btn:hover,
.mobile_login-btn:hover {
  background: var(--button-hover);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .nav_links {
    visibility: hidden;
  }

  .nav_btn {
    display: none;
  }
}

/* ============= Navbar end ============= */

/* It makes spaces to keep text awy form the age of the screen */
.text_space {
  padding: 0px 2%;
}

.heading {
  color: #444;
  font-size: 40px;
  text-align: center;
  padding: 10px;
}

.container {
  display: grid;
  grid-template-columns: 1fr;
}

/*
.iframe_container {
    margin-top: 80px;
  width: 100%;
  height: 1000px;
  padding-bottom: 56.25%;
  position: relative;
}

.iframe_container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
}
*/
/*
.iframe_container {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.iframe_container iframe {
  padding: absolute;
  border: none;
  border-radius: 10px;
  top: 10px;
  padding-bottom: 100;
  left: 10px;
  width: 100%;
  height: auto;
}


.container .main-video {
  background-color: var(--elements-background);
  backdrop-filter: blur(50px);
  border-radius: 0;
  padding: 20px;
}

.container .main-video video {
  width: 100%;
  align-self: center;
  justify-content: center;
  border-radius: 5px;
}
*/
.display {
  display: none;
}

.container .main-video .title {
  height: auto;
  color: #333333;
  font-size: 1.5rem;
  padding-top: 15px;
  padding-bottom: 15px;
}

.container .video-list {
  display: inline-flex;
  background-color: var(--elements-background);
  backdrop-filter: blur(50px);
  height: auto;
  overflow-x: scroll;
}

.container .video-list::-webkit-scrollbar {
  width: 7px;
}

.container .video-list::-webkit-scrollbar-track {
  background: var(--elements-background);
  border-radius: 0px;
}

.container .video-list::-webkit-scrollbar-thumb {
  background: #b4a2e4;
}

.container .video-list .vid video {
  width: 100%;
  border-radius: 5px;
}

.container .video-list .vid {
  display: inline;
  align-items: center;
  gap: 15px;
  background-color: #dfd3ffcc;
  backdrop-filter: blur(10px);
  border-radius: 5px;
  margin: 1%;
  padding: 15px 24px;
  border: none;
  cursor: pointer;
}

.container .video-list .vid:hover {
  background-color: #ffffff00;
}

.container .video-list .vid.active {
  background: #ffffff80;
}

.container .video-list .vid:active .title {
  background-color: #ffffff80;
  backdrop-filter: blur(10px);
}

.container .video-list .vid .title {
  color: #333;
  font-size: 17px;
}

.comments_container {
  background-color: #ffffff80;
  backdrop-filter: blur(50px);
  font-size: 1rem;
  border-radius: 0;
  padding: 10px;
  width: 100%;
  padding: 0px 10px 100% 10px;
  padding-top: 3%;
}

.comment_textarea {
  height: 1%;
  width: 100%;
  border: none;
  border-bottom: 2px solid #aaa;
  background-color: transparent;
  margin-bottom: 10px;
  resize: none;
  outline: none;
  transition: 0.5s;
}

.comment_input[type="submit"],
.comment_button {
  padding: 10px 15px;
  border: none;
  outline: none;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
}

.comment_input[type="submit"] {
  float: right;
  background-color: var(--button-background);
  transition: all 0.3s ease;
  border-color: var(--text-color);
  border-radius: 0.3rem;
  padding: 5px 10px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  border: solid;
}

.comment_input[type="submit"]:hover {
  background-color:var(--button-hover);
  backdrop-filter: blur(10px);
}

.comment_button {
  float: right;
  color: #333;
  background-color: transparent;
}

.comment_btn {
  display: none;
}

/* =========== Mobile navbar =========== */
nav.mobile_nav {
  box-shadow: 0 4px 8px 0 var(--box-shadow);
  display: flex;
  position: fixed;
  color: var(--text-color);
  bottom: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  width: 100%;
  padding: 0.5rem 0;
  background: var(--elements-background);
  backdrop-filter: blur(10px);
  z-index: 100;
  margin: 0 auto;
}

.mobile_nav {
  transition: all 0.5s ease-in-out;
}

nav.mobile_nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
  justify-self: center;
  vertical-align: middle;
}

nav.mobile_nav ul li {

  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  flex-grow: 1;
  margin: 0;
}

nav.mobile_nav ul li a {
  color: var(--text-color);
  font-size: inherit;
}

nav.mobile_nav ul li a svg {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
}

.s-size {
  font-size: 24px;
  display: block;
  margin-left: 3px;
}

.menu {
  margin-left: 5px;
}

.random {
  margin-left: 10px;
}

.account {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  color: var(--text-color);
}

@media screen and (min-width: 768px) {
  nav.mobile_nav {
    display: none;
  }
}

/* =========== Mobile navbar end =========== */